<?php 
/* SVN FILE: $Id$ */
/* CollectGood Test cases generated on: 2009-05-19 23:05:36 : 1242791196*/
App::import('Model', 'CollectGood');

class CollectGoodTestCase extends CakeTestCase {
	var $CollectGood = null;
	var $fixtures = array('app.collect_good', 'app.user', 'app.good');

	function startTest() {
		$this->CollectGood =& ClassRegistry::init('CollectGood');
	}

	function testCollectGoodInstance() {
		$this->assertTrue(is_a($this->CollectGood, 'CollectGood'));
	}

	function testCollectGoodFind() {
		$this->CollectGood->recursive = -1;
		$results = $this->CollectGood->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('CollectGood' => array(
			'id'  => 1,
			'add_time'  => '2009-05-19 23:46:36',
			'is_attention'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'user_id'  => 1,
			'good_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>